package hilfsklassen;

import java.util.List;

public class Sortierer5<T extends Comparable<T>> implements MeinSortierer<T> {

	@Override
	public List<T> sortieren(List<T> list) {
		for (T el : list)
			for (T el2 : list)
				if (el.compareTo(el2) < 0) {
					int idx1 = list.lastIndexOf(el);
					int idx2 = list.lastIndexOf(el2);
					list.set(idx1, el2);
					list.set(idx2, el);
				}
		return list;
	}

}
